Skip to content

Fix empty FlexPanel size - #22130

Merged
MrJul merged 1 commit into
AvaloniaUI:mainfrom
kerams:flex
Sep 2, 2026
Merged

Fix empty FlexPanel size#22130
MrJul merged 1 commit into
AvaloniaUI:mainfrom
kerams:flex

Conversation

@kerams

@kerams kerams commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

What does the pull request do?

Fixes a regression introduced when integrating FlexPanel.

What is the current behavior?

Throws when an empty FlexPanel in a vertical StackPanel reports infinite size.

What is the updated/expected behavior with this PR?

Returns zero size, no crash.

Checklist

@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.2.999-cibuild0069360-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrJul
MrJul added this pull request to the merge queue Sep 2, 2026
Merged via the queue into AvaloniaUI:main with commit 9d5c2fa Sep 2, 2026
10 checks passed
@kerams
kerams deleted the flex branch September 2, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants